<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
function ouputcsv()
{
	$("#if_csv").val(1);
	$("#search").submit();
}


</script>
<title>扫单发货列表</title>
<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent">
<div class="pageheader notab">
  <h1 class="pagetitle">扫单发货列表</h1>
  <span class="pagedesc"></span>
  <div class="menulist">
   
  </div>
  
</div>
<!--pageheader-->
<div id="contentwrapper" class="contentwrapper">
<div id="basicform" class="subcontent">
   <!--搜索栏-->
          <div>
          
   	
         <div style="clear: both"></div>
         <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
   </div>
      
    <form class="stdform stdform2" method="get" id="search" action="/order/ajaxbutton">
     <input type='hidden' name='op' id='op' value="scanorderlist">
     <input type="hidden" name="if_csv" id="if_csv">

      <div class="tableoptions"> 
        
      
         
               
       扫单时间
    
       <input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
       订单号: <input type="text" name="other" id="other" class="width200" value="{{$other}}" placeholder="订单编号" />
       扫单员: <input type="text" name="kw" id="kw" class="width200" value="{{$kw}}" placeholder="姓名" />
                           
&nbsp;
        <button class="btn btn-primary" id="searchbtn">Search</button>
        &nbsp;
        <button onClick="ouputcsv()" class="stdbtn btn_black">导出</button>
     
      </div>
      
    
    </form>
    <!--搜索栏结束-->
<table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
<thead>
  <tr class="lbbt">
    <td  bgcolor="#FEFFF1">订单编号</td>
    <td  bgcolor="#FEFFF1">运单编号</td>
    <td  bgcolor="#FEFFF1">扫重</td>
     <td  bgcolor="#FEFFF1">物流方式</td>
    <td  bgcolor="#FEFFF1">扫单员</td>
    <td  bgcolor="#FEFFF1">扫单时间</td>
    <td  bgcolor="#FEFFF1">处理结果</td>

    
  </tr>
</thead>
<tbody >

{{foreach from=$orderlist item=li key=key}}
  <tr>
    <td valign="middle" bgcolor="#FFFFFF" style="position:relative;">
     <a href="/orderlist/orderlist?kw={{$li.batch_order_sn}}"><font color="#6666FF">{{$li.batch_order_sn}}</font></a>
     </td>
     <td valign="middle" bgcolor="#FFFFFF">{{$li.batch_shipping_number}}</td>
      <td valign="middle" bgcolor="#FFFFFF">{{$li.batch_orderweight}}克</td>
       <td valign="middle" bgcolor="#FFFFFF">{{$li.batch_shipping_name}}</td>
    
    <td  bgcolor="#FFFFFF" style="position:relative;">
   {{$li.oper}}
   </td>
    <td valign="middle" bgcolor="#FFFFFF">{{$li.opertime}}</td>
    <td valign="middle" bgcolor="#FFFFFF">处理成功</td>
  </tr>
   
{{/foreach}}
</tbody>

</table>
  <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
</div>
</div>

  
  <!-- 模态框（Modal）显示马帮订单号 -->
  <form  method="post">
  <div class="modal fade" id="showmabangorder" tabindex="-1" role="dialog" aria-labelledby="sshowmabangorder" aria-hidden="true">
    <div class="modal-dialog" style="width:740px;">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" 
               aria-hidden="true">× </button>
          <h4 class="modal-title" id="sshowmabangorder"> 输入订单编号  </h4>
        </div>
        <div class="modal-body">
         <table cellpadding="0" cellspacing="0" border="0" class="stdtable" style="table-layout: fixed;">
          <tr class="lbbt"><td width="20%" bgcolor="#FEFFF1">商品编号</td><td bgcolor="#FEFFF1" width="40%">商品名称</td><td bgcolor="#FEFFF1">数量</td><td bgcolor="#FEFFF1">价格</td><td bgcolor="#FEFFF1">运费</td><td bgcolor="#FEFFF1">总价</td></tr>
          <tbody id="showmabangid"></tbody>
          </table>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal"> 关闭 </button>
          </div>
        </div>
        <!-- /.modal-content --> 
      </div>
      <!-- /.modal-dialog --> 
    </div>
  </div>
  <!-- /.modal -->
  </form>
</body>
</html>